from appium.webdriver.common.appiumby import AppiumBy

from app.page_object.base_page import BasePage


class AddMemberPage(BasePage):
    #进入到输入成员的名字和电话信息的页面
    def add_member(self,name,phone):
        self.driver.find_element(AppiumBy.ID, "com.tencent.wework:id/bsm").send_keys(name)
        self.driver.find_element(AppiumBy.ID, "com.tencent.wework:id/hgi").send_keys(phone)
        self.driver.find_element(AppiumBy.ID, "com.tencent.wework:id/at6").click()
        from app.page_object.member_list_page import MemberListPage
        return MemberListPage(self.driver)